#ifndef _VIDEO_MODEL_IO_HXX_
#define _VIDEO_MODEL_IO_HXX_

#define PROJECT_VERSION 2

class QWidget;

class Sequence;

class Project;

class ProjectIO
{
public:
    static bool WriteProject(Project* project, const char* fileName);
    static bool LoadProject(Project* project, const char* fileName);
    static bool ExportProject(QWidget* widget, Project* project, const char* imageDir);
    static bool ExportFishProject(QWidget* widget, Project* project, const char* imageDir);


private:
    static bool ExportProjectFrames(QWidget* widget, Project* project, const char* imageDir);
    static bool ExportVideoFrames(QWidget* widget, Sequence* sequence, const char* imageDir);
    static bool ExportFileList(QWidget* widget, Project* project, const char* imageDir);
    static bool ExportVideoFrameList(QWidget* widget, Project* project, Sequence* sequence, const char* imageDir, std::ofstream* ftrain, std::ofstream* ftest);
};
#endif
